package com.lwy.springbootdemo01.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * Springboot 读取 application.properties 里jdbc数据
 */
//@ConfigurationProperties(prefix = "jdbc")   //设置前缀，因为存的是jdbc.driverClassName   默认读取application.properties
//@EnableConfigurationProperties(Jdbcproperties.class)
//@Data   //自动生成get/set等方法
public class Jdbcproperties {


    private String url;

    private String driverClassName;

    private String username;

    private String password;


}
